package com.icloud.article.boot.dto;


import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;

@ApiModel("帖子dto")
@Data
public class ArticleDto {
    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty(value = "可见范围,ALL-所有人,HOME-仅主页可见,FORBIDDEN-不让他看,STRANGER-仅陌生人可见,SQUARE-仅动态广场可见,SELF-仅自己可见", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String visible;

    @ApiModelProperty(value = "权限:是否禁止下载, TRUE, 默认-FALSE(即默认允许下载)", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String permDown;

    @ApiModelProperty(value = "权限:是否禁止转发, TRUE, 默认-FALSE(即默认允许转发)", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String permTransmit;

    @ApiModelProperty(value = "可评论范围 默认:所有人可评论-ALL, 我关注的-FOLLOWED, 关注我的-FOLLOW_ME, 所有人不可评论-NO", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String discussion;

    @ApiModelProperty("不让他看人员id，设置为不让他看时不能为空")
    private List<Long> visibleCustomerIds;

    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String content;

    @ApiModelProperty("动态附件地址")
    private List<AttachmentDto> attachmentList;

    @ApiModelProperty("附件类型:VIDEO-视频,IMG-图片,只能上传其中一种,为空表示没有附件,则为纯文字")
    private String attachmentType;
}
